<form id="add-form" class="form-horizontal  nice-validator n-default n-bootstrap"  data-toggle="validator" method="POST" action="{:url('level/detail')}" >

    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">等级名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="name" id="name" class="form-control" value="{$level.name}">
        </div>
    </div>
    <div class="form-group">
        <label for="uname" class="control-label col-xs-12 col-sm-2">金额:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="money" id="money" class="form-control" value="{$level.money}">
        </div>
    </div>
    <div class="form-group">
        <label for="uname" class="control-label col-xs-12 col-sm-2">级别:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="level" id="level" class="form-control" value="{$level.level}">
        </div>
    </div>
    <input type="hidden" name="id" value="{$level.id}">
    <div class="form-group">
        <label for="uname" class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="state" >
                {if condition="$level.state eq 1"}
                <option value="1" selected>启用</option>
                <option value="2">禁用</option>
                {else/}
                <option value="1" >启用</option>
                <option value="2" selected>禁用</option>
                {/if}
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <div class="col-xs-2"></div>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">提交</button>
            <button type="reset" class="btn btn-default btn-embossed"><a href="{:url('level/index')}">返回</a></button>
        </div>
    </div>
</form>
<!-- 配置文件 -->
<script type="text/javascript" src="/assets/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/assets/ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var editor = UE.getEditor('container');
</script>
